﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class menu : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["reloadScript"] != null)
        {
            Response.Write(Session["reloadScript"]);
            Session["reloadScript"] = null;
        }
        Session["userName"] = User.Identity.Name.ToString();

    }
    protected void tripTreeView_TreeNodeDataBound(object sender, TreeNodeEventArgs e)
    {
        if (e.Node.Text == "郵件通訊")
        {
            e.Node.Target = "_blank";
        }
    }
    protected void Login_LoggedIn(object sender, EventArgs e)
    {

        Session["reloadScript"] = "<script>parent.mainframe.location.href='Management/indexInManagementAfter.aspx';</script>";
    }
    protected void LoginStatus_LoggedOut(object sender, EventArgs e)
    {
        Session["reloadScript"] = "<script>parent.mainframe.location.href='Management/indexInManagement.aspx';</script>";
    }
}